<?php
/**
 * 学生获取购买课程信息
 * @author shej E-mail:28708@qq.com
 */
require_once '../../dz_framework/init.php';

$class_id = isset($_REQUEST['class_id'])?$_REQUEST['class_id']:"";

// limit 10 最近的10个课时

$get_student_info = DB::fetch_all('select user_id,user_name,user_nickname,user_realname from '.DB::table('users')." where class_id='".$class_id."' and user_role_id=21 and isdelete=0");	

if($get_student_info)
{	
	echo json_encode($get_student_info); exit;
	
}else{
	
	echo json_encode(array('error'=>'no student data')); exit;
}